//
//  ViewController.m
//  霓虹灯
//
//  Created by dllo on 16/6/12.
//  Copyright © 2016年 zuzhiming. All rights reserved.
//

#import "ViewController.h"
#import "RainbowView.h"
@interface ViewController ()

@end

@implementation ViewController


- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    //加载
    [self createRainbowView];
    
}

//创建自定义彩虹灯
- (void)createRainbowView
{
    RainbowView *rainbowView = [[RainbowView alloc] initWithFrame:[UIScreen mainScreen].bounds TimeInterval:0.3f];
    [self.view addSubview:rainbowView];
    [rainbowView release];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
